/**
 *  路由指向这个页面的loading 通过loading 按需加载页面
 */
import React from 'react';
import { Spin } from 'antd';
import { dynamic } from 'umi';

const delay = timeout => new Promise(resolve => setTimeout(resolve, timeout));

export default dynamic({
  loading: () => <Spin />,
  loader: async () => {
    // await delay(2000);
    return import('./index');
  },
});
